package com.fm.financemanage.model.vo;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version V1.0
 * @author: zpc
 * @date:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserTokenVo {

    /**
     * 用户的id
     */
    private Integer id;

    /**
     * 会员的uuid
     */
    private String uuid;


    /**
     * 生成token时的时间戳
     */
    private long timestamp;


    //    account
    private String account;

    //    公司key
    private String companyKey;


    //    userType
    private String userType;


    @Override
    public String toString() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id", this.id);
        jsonObject.put("uuid", this.uuid);
        jsonObject.put("timestamp", this.timestamp);
        jsonObject.put("account", this.account);
        jsonObject.put("companyKey", this.companyKey);
        return jsonObject.toJSONString();
    }
}
